var dataUrl = null;
$(function () {
    // dataUrl = $("#dataUrl").val();
    dataUrl ="/modules";
});
//整改通知单、整改闭环单、项目评分表、检查表
//整改通知单
function getRectificationNotice(taskId) {debugger
    var url = dataUrl + "/basicReport/task?taskId="+taskId;
    $.ajax({
        url: url,
        method: "get",
        dataType: "json",
        success: function (result) {
            if (result != null) {
                window.location=result;
            } else {
                layer.msg("获取信息错误，请联系管理员！");
            }
        }
    });
}
//整改闭环单
function getRectifyClosedLoop(taskId) {
    var url = dataUrl + "/reporter/task?taskId="+taskId;
    $.ajax({
        url: url,
        method: "get",
        dataType: "json",
        success: function (result) {
            if (result != null) {
                window.location=result;
            } else {
                layer.msg("获取信息错误，请联系管理员！");
            }
        }
    });
}
//项目评分表
function getProjectScoreTable(taskId) {
    var url = dataUrl + "/reporter/project?taskId="+taskId;
    $.ajax({
        url: url,
        method: "get",
        dataType: "json",
        success: function (result) {
            if (result != null) {
                window.location=result;
            } else {
                layer.msg("获取信息错误，请联系管理员！");
            }
        }
    });
}
//检查表
function getChecklist(taskId) {
    var url = dataUrl + "/reporter/check?taskId="+taskId;
    $.ajax({
        url: url,
        method: "get",
        dataType: "json",
        success: function (result) {
            if (result != null) {
              window.location=result;
            } else {
                layer.msg("获取信息错误，请联系管理员！");
            }
        }
    });
}